package cn.itsource.pethome.service;

import cn.itsource.pethome.domain.Department;
import cn.itsource.pethome.query.DepartmentQuery;
import cn.itsource.pethome.result.JSONResult;
import cn.itsource.pethome.result.PageList;
import java.util.List;

public interface DepartmentService{

    //根据ID查询部门信息
    Department selectById(Long id);

    //查询所有部门信息（分页）
    PageList<Department> pagelist(DepartmentQuery query);

    //查询所有部门信息（不分页）
    List<Department> list();

    //保存或更新部门信息
    JSONResult saveOrUpdate(Department dept);

    JSONResult deleteBatch(DepartmentQuery departmentQuery);
    JSONResult delete(Long id);
}
